- content_for :css_includes do
  = stylesheet_link_tag 'map'
  = stylesheet_link_tag 'print', :media => 'print'

- content_for :javascript_includes do
  = javascript_include_tag 'wms'
  = javascript_include_tag 'filters'
  = javascript_include_tag 'json'
  = javascript_include_tag 'wfs'
  = javascript_include_tag 'featureinformation'
  = javascript_include_tag 'controls'
  = javascript_include_tag 'style'
  = javascript_include_tag 'main'
  = javascript_include_tag 'capabilities'
  
- content_for :logout_button do
  #logoutcontainer
    = form_tag({:controller => 'users', :action => 'logout'}, :method => 'post') do
      = submit_tag 'Kirjaudu ulos', :id => 'logoutbutton'

- content_for :search_field do
  #search
    %input{:id => 'searchBox', :placeholder => "Hae paikkaa", :type => 'text', 'autofocus' => 'autofocus'}
    %label{:for => 'keepResults', :class => 'searchCB'} Muista aiemmat tulokset
    %input{:id => 'keepResults', :type => 'checkbox'}
    %label{:for => 'showMunicipality', :class => 'searchCB'} Näytä kuntarajat
    %input{:id => 'showMunicipality', :type => 'checkbox'}
  
#mapcontainer  
  #map

#sidewrapper
  #sidenavi
    %button{:id => 'resultslink', :class => 'navibutton'} Hakutulokset      
    %button{:id => 'searchlink', :class => 'navibutton'} Tarkenna hakua
    %button{:id => 'infolink', :class => 'navibutton'} Käyttöohjeet
  #sidepanel
    #info
      = render "help"
    #searchoptions
      = render "searchoptions"
    #results
      #toggleListView
        %input{:id => 'toggleListButton', :type => 'submit', :value => 'Listanäkymä'}
        %input{:id => 'printButton', :type => 'submit', :value => 'Tulosta'}
        %input{:id => 'csvButton', :type => 'submit', :value => 'CSV'}
      #categoryView
      #listView
